package com.itheima.jdk8date;

import java.time.LocalDateTime;

/**
 * 获取 日期时间对象
 */
public class JDK8DateDemo2 {
    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now);
        //2050-11-11 00:00:00.001000001
        //2050-11-11 00:00:00.001000002


        LocalDateTime localDateTime = LocalDateTime.of(2050, 11, 11, 11, 11, 11);
        System.out.println(localDateTime);
    }
}
